﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
namespace HA.ModFlow.Controls.Converts
{
    class SpeciesConvert:IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            int index = (int)value;
            bool P=false ;
            switch (index)
            {
                case 0:
                    P = false;
                    break;
                case 1:
                    P = true ;
                    break;
                case 2:
                    P = true;
                    break;
                case 3:
                    P = true;
                    break;
                case 4:
                    P = true;
                    break;
                case 5:
                    P = false ;
                    break;
                case 6:
                    P = true;
                    break;
            }
            return P;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
